const a = async function (params, _1, { dc: { http }, dayjs }) {
  const { dataRange } = params;
  if (dataRange) {
    const [start, end] = dataRange;
    params.startDate = dayjs(`${start.split(" ")[0]} 00:00:00`).valueOf();
    params.endDate = dayjs(`${end.split(" ")[0]} 23:59:59`).valueOf();
    delete params.dataRange;
  }
  const { data, total } = await http.post({
    url: "/nyk/search/pageDataRec",
    data: params,
  });
  return {
    items: data,
    total,
  };
};
